//
//  YYCacheDefault.m
//  TKDoctor
//
//  Created by EDZ on 2018/10/26.
//  Copyright © 2018 lst. All rights reserved.
//

#import "YYCacheDefault.h"
#import "YYCache.h"

@implementation YYCacheDefault

+ (void)yychcheSetObject:(NSString *)object forKey:(NSString *)key{
    
    YYCache *yyCache=[YYCache cacheWithName:@"caches"];
    [yyCache setObject:object forKey:key];
    
}
+ (NSString *)yychcheObjectForKey:(NSString *)key{
    
    YYCache *yyCache=[YYCache cacheWithName:@"caches"];
    if ([yyCache containsObjectForKey:key]) {
        NSString *string = (NSString *)[yyCache objectForKey:key];
        return string;
    }else{
        return @"";
    }
    
}
+ (void)removeObjectForKey:(NSString *)key{
    
    YYCache *yyCache=[YYCache cacheWithName:@"caches"];
    [yyCache removeObjectForKey:key];
}

@end
